@model University.Models.ScheduleItem

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>ScheduleItem</legend>

    <div class="display-label">WeekDay</div>
    <div class="display-field">@Model.WeekDay</div>

    <div class="display-label">Par</div>
    <div class="display-field">@Model.Par</div>

    <div class="display-label">Subject</div>
    <div class="display-field">@(Model.Subject == null ? "None" : Model.Subject.Name)</div>

    <div class="display-label">Professor</div>
    <div class="display-field">@(Model.Professor == null ? "None" : Model.Professor.LastName)</div>

    <div class="display-label">Room</div>
    <div class="display-field">@Model.Room</div>

    <div class="display-label">StartTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.StartTime)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


